
const { computed } = Vue

// 导出一个 组件 的对象
export default {
  template: `
    自我介绍一下：{{person}} - age: {{age}}
  `,
  setup(props) {
    const person = reactive({
      name: 'composition API演示',
      age: 19
    })

    const age = computed(() => {
      return person.age
    })

    console.log('age', age)
    return {
      person,
      age
    }
  }
}